Skip to content

Support m4b, m4v and aac files, and folder drag and drop - #1595

Merged
raivisdejus merged 2 commits into
chidiwilliams:mainfrom
openaudible:m4b-media-formats
Aug 28, 2026
Merged

raivisdejus merged 2 commits into
chidiwilliams:mainfrom
openaudible:m4b-media-formats

Conversation

@openaudible

Copy link
Copy Markdown
Contributor

Problem

.m4b (audiobooks), .m4v and .aac were missing from the import filters, so those files could not be selected in the file dialog and were skipped by the watched folder.

The dialog filter string and the watched-folder extension set were also maintained as two separate lists that had drifted apart.

Changes

  • Add .m4b, .m4v and .aac to the supported media extensions.
  • Derive both the file dialog filters and the watched-folder extension check from a single SUPPORTED_EXTENSIONS set in buzz/transcriber/transcriber.py, so the two can no longer drift.
  • Dropping a folder on the main window now queues the media files inside it, reusing the same walk as Import Folder (find_media_files_in_folder).
  • Handle dragMoveEvent and set an explicit CopyAction, so drops are accepted on platforms that require the move event to be answered.

Testing

Verified by dragging single files, multiple files and folders onto the main window, and by dropping .m4b files into a watched folder.

🤖 Generated with Claude Code

openaudible and others added 2 commits August 23, 2026 09:07
The audiobook (.m4b), video (.m4v) and audio (.aac) extensions were
missing from the import filters, so those files could not be picked in
the file dialog and were ignored by the watched folder.

The file dialog patterns and the watched folder extension set were also
two separate lists that had drifted apart. Both now derive from a single
SUPPORTED_EXTENSIONS set in the transcriber module.

Dropping a folder on the main window now queues the media files it
contains, reusing the same walk as Import Folder, and dragMoveEvent is
handled so the drop is accepted on platforms that require it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@raivisdejus

Copy link
Copy Markdown
Collaborator

@openaudible thanks for your contribution!

@raivisdejus
raivisdejus enabled auto-merge (squash) August 28, 2026 14:08
@codecov

codecov Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 48.48485% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.45%. Comparing base (35c381c) to head (b50cbed).

Files with missing lines Patch % Lines
buzz/widgets/main_window.py 34.61% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1595      +/-   ##
==========================================
- Coverage   83.56%   83.45%   -0.12%     
==========================================
  Files         111      111              
  Lines       12625    12648      +23     
==========================================
+ Hits        10550    10555       +5     
- Misses       2075     2093      +18     
Flag Coverage Δ
Linux 82.66% <48.48%> (-0.11%) ⬇️
macOS 82.93% <48.48%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@raivisdejus
raivisdejus merged commit 56f1d49 into chidiwilliams:main Aug 28, 2026
13 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants